<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    let num = prompt('请输入你的成绩')
    if(num>=90){
      console.log('A');
    }  else if(num>=80){
      console.log('B');
    } else if(num>=70){
      console.log('C');
    }  else if(num>=60){
      console.log('D');
    } else{
      console.log('E');
    }
  </script>
</body>
</html>